import {Text, TouchableOpacity, View} from 'react-native';
import React from "react";

import Style from '../../common/style'
import Title from "../component/title";

export default class SettingPage extends React.Component {

    constructor(props) {
        super(props);
        console.log('props', props);
        console.log('componentName', props.screenProps.mainComponentName);
        console.log('extras', props.screenProps.extras);
    }

    render() {
        return (
            <View style={{flex: 1}}>
                <Title title='Setting'/>
                <View style={{flex: 1}}/>
                <TouchableOpacity style={[Style.button, {marginBottom: 10}]} onPress={() => {
                    this.props.navigation.goBack()
                }}>
                    <Text>Go Back</Text>
                </TouchableOpacity>
            </View>
        )
    }
}
